package com.naizhuai.Model.db.search;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import com.naizhuai.Model.db.Tables;
import com.naizhuai.Model.db.user.PersonUserBean;

import java.io.Serializable;
import java.util.List;

/**
 * 搜索历史的基本字段
 * Created by code_han on 2018/2/1.
 */
@Entity(tableName = Tables.SEARCH_TABLE,
        primaryKeys = {"userId"})
public class SearchHistoryBean implements Serializable {

    public static final String PHONE_KEY="phone_cry_key";

    @NonNull
    @ColumnInfo(name = "userId")
    private String userId;

    @ColumnInfo(name = "userUrl")
    private String userUrl;

    @ColumnInfo(name = "username")
    private String username;

    @ColumnInfo(name = "timeTemp")
    private long time;

    public SearchHistoryBean() {
    }


    @Ignore
    public SearchHistoryBean(@NonNull String userId, String userUrl, String username, long time) {
        this.userId = userId;
        this.userUrl = userUrl;
        this.username = username;
        this.time = time;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserUrl() {
        return userUrl;
    }

    public void setUserUrl(String userUrl) {
        this.userUrl = userUrl;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }
}
